package com.ciban.smarthome.module.net.communication;

import com.ciban.smarthome.module.entity.Host;
import com.ciban.smarthome.module.net.protocol.Protocol;

public class ProtocolHelper {

	public static String getNormalCmd(Host host, int empNo, int opr) {
		if (host == null)
			return null;
		return Protocol.getNormalCmd(host.getSerial_no(), empNo, opr);
	}

	public static String getIfCmd(Host host, int empno, int keycode) {
		if (host == null)
			return null;
		return Protocol.getIfCmd(host.getSerial_no(), empno, keycode);
	}

	public static String getSceneCmd(Host host, int sceneNo) {
		if (host == null)
			return null;
		return Protocol.getSceneCmd(host.getSerial_no(), sceneNo);
	}

}
